package com.javaclimb.music.service.impl;

import com.javaclimb.music.mapper.SingerMapper;
import com.javaclimb.music.po.Singer;
import com.javaclimb.music.service.SingerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SingerServiceImpl implements SingerService {
    @Autowired
    private SingerMapper singerMapper;

    @Override
    public List<Singer> getList() {
        return singerMapper.getList();
    }

    @Override
    public Singer getSingerById(Singer singer) {
        return singerMapper.getSingerById(singer);
    }

    @Override
    public List<Singer> getSingerLikeName(Singer singer) {
        return singerMapper.getSingerLikeName(singer);
    }


    @Override
    public int insertSinger(Singer singer) {
        return singerMapper.insertSinger(singer);
    }

    @Override
    public int updateById(Singer singer) {
        return singerMapper.updateById(singer);
    }

    @Override
    public int deleteById(Singer singer) {
        return singerMapper.deleteById(singer);
    }

}
